package wh.两数相加;

/**
 * 自定义单链表节点
 */
public class ListNode {
    Integer val;
    ListNode next;
    public ListNode() {
    }
    public ListNode(Integer val) { this.val = val; }
    public ListNode(Integer val, ListNode next) {
        this.val = val;
        this.next = next;
    }

    @Override
    public String toString() {
        return "ListNode{" +
                "val=" + val +
                ", next=" + next +
                '}';
    }
}
